package com.xiaoshuidi.cloud.module.finance.dal.dataobject.finance;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @BelongsProject: lease-module-finance
 * @BelongsPackage: com.xiaoshuidi.cloud.module.finance.dal.dataobject.finance
 * @Author: James
 * @CreateTime: 2023-11-30  17:44
 * @Description: 分账账户信息
 * @Version: 1.0
 */
@TableName(value = "finance_divide_config", autoResultMap = true)
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FinanceDivideAccountDo extends TenantBaseDO implements Serializable {
    @TableId
    private Long id;
    //部门编号
    private Long apartmentId;
    //0关闭1开启
    private Integer status;
    //账号id
    private Long accountId;
    //账号名称
    private String accountName;
    //账号卡号
    private String accountNo;
    //分账模式1-比例,2-费用类型
    private Integer mode;
    //分账比例
    private BigDecimal ratio;
    //费用类型项
    private String feeTypeItem;
    //费用模式（费用类型 cycle 周期性费用 元/月 |once 一次性费用 元|deposit 押金费用 元 | meter 抄表费用）
    private String feeTypeMode;
    //是否主账号
    private Boolean bigAccount;
}
